<?php
			$query = "SELECT company FROM client";
			$link = mysql_connect('localhost', 'root', '');
			mysql_select_db('eais',$link);
			$result = mysql_query($query);


			echo "<div id=\"vHead\">";
			echo	"<span id=\"viewHeader\">Add Enzyme</span>";
			echo "</div>";

			echo "<div id=\"vBody\">";
			echo "		<input type=\"button\" value=\"submit\" onclick=\"validate('addEnzyme');\"><input type=\"button\" value=\"cancel\" onclick=\"cancel('add');\">";
			echo "		<div id=\"viewClient\">";
			echo "			<div id=\"client_l\">";
			echo "				Client:<span id=\"clientError\" class=\"error\">&nbsp;*invalid</span>";
			echo "			</div>";
			echo "			<div id=\"client_i\">";
			echo "				<select id=\"clientValue\" class=\"inputClient\">";
			echo "					<option value='0'>- - - - - - - -</option>";						
								while($rows=mysql_fetch_assoc($result))
								echo "<option value='".$rows['company']."'>".$rows['company']."</option>";
			echo "				</select>";			
//			echo 				"<input type=\"text\" id=\"clientValue\" size=\"19\" value=\"".$_REQUEST['client']."\" />";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewName\">";
			echo "			<div id=\"name_l\">";
			echo "			Name:<span id=\"nameError\" class=\"error\">&nbsp;*invalid</span>";
			echo "			</div>";
			echo "			<div id=\"name_i\">";
			echo 				"<input type=\"text\" id=\"nameValue\" class=\"input\" size=\"19\" value=\"".$_REQUEST['name']."\" >";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewOrigin\">";
			echo "			<div id=\"origin_l\">";
			echo "			Origin:<span id=\"originError\" class=\"error\">&nbsp;*invalid</span>";
			echo "			</div>";
			echo "			<div id=\"origin_i\">";
			echo 				"<input type=\"text\" id=\"originValue\" class=\"input\" size=\"19\" value=\"".$_REQUEST['origin']."\" >";
			echo "			</div>";
			echo "		</div>";
			echo "		<div id=\"viewDate\">";
			echo "			<div id=\"date_l\">";
			echo "			Date:<span id=\"dateError\" class=\"error\">&nbsp;*invalid</span>";
			echo "			</div>";
			echo "			<div id=\"date_i\">";
			echo 				"<input type=\"text\" id=\"dateValue\" class=\"input\" size=\"19\" value=\"".$_REQUEST['date']."\" >";
			echo "			</div>";
			echo "		</div>";
			echo "</div>";
			
			echo "<div id=\"vLower\">";
			echo "</div>";
?>